# -*- coding: utf-8 -*-
# @Time    : 2020/3/17 11:46
# @Author  : Sunny
# @Site    : 
# @File    : bootstrap.py
# @Software: PyCharm
# @WeChat public address : 程序猿与python之间的秘密

class BootStrapForm(object):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        for name, field in self.fields.items():
            field.widget.attrs['class'] = 'form-control'
            field.widget.attrs['placeholder'] = '请输入%s' % (field.label,)
